package com.whty.ssm.db01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Copyright 2016-2022 tianyu education Corporation, All Rights Reserved
 * http://www.whty.com.cn/
 *
 * @author wangming
 * @version 1.0
 * @date 2020/9/2 11:00
 * @since 1.0
 */

@Controller
@RequestMapping("/error")
public class TestErrorController {
    //http://localhost:8080/myssm/error/403
    @RequestMapping("/403")
    public String page403(){
        return "sendRedirect:/errors/errorpages/403.html";
    }
    @RequestMapping("/404")
    public String page404(){
        return "forward:/errorpages/404.html";
    }
    @RequestMapping("/500")
    public String page500(){
        return "errors/errorpages/500.html";
    }
    @RequestMapping("/503")
    public String page503(){
        return "errors/errorpages/503.html";
    }
    @RequestMapping("/loginerror")
    public String loginerror(){
        return "errors/errorpages/error-login.html";
    }
}
